import { request } from "@/request";

export async function fetchList(data) {
  return await request("/admin/agreement//listQuery", {
    method: "POST",
    data,
  });
}

export async function update(data) {
  return request("/admin/agreement//update", {
    method: "POST",
    data,
  });
}

export function fetchInfo(data) {
  return request(`/admin/agreement/get/${data.id}`, {
    method: "POST",
  });
}
